package com.glink.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glink.manage.domain.ConstructionWorkBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author  qiushaoshan
 * @since  2025-01-08
 */
public interface ConstructionWorkMapper extends BaseMapper<ConstructionWorkBean> {

    /**
     * 查询所有的ID
     * @return 工程ID
     */
    List<String> findAllId();

    /**
     * 根据项目部ID查询工程信息
     * @param orgIdList 项目部ID
     * @return 工程信息
     */
    List<ConstructionWorkBean> findByProjectDepartmentObjIdInOrderByProjectDepartmentOrgOrderAsc(@Param("orgIdList") List<String> orgIdList);

    /**
     * 查询工程信息
     * @return 工程信息
     */
    List<ConstructionWorkBean> findByOrderByProjectDepartmentOrgOrderAsc();
    
}
